const fs = require('fs')
//异步读取
let data = fs.readFile('一首诗.txt', (err, data) => {
	if (err) {
		console.log(err)
	} else console.log(data.toString())
})
//同步读取
let data2 = fs.readFileSync('一首诗.txt')
console.log(data2.toString())